package com.jiazhong.接口.Interface02;

import com.sun.org.apache.xpath.internal.operations.Or;

public class test {
    public static void main(String[] args) {
        Mysql mysql=new Mysql();
        Oracle oracle=new Oracle();
        t(mysql);
        t(oracle);
    }
    public static void t(DBInterface dbInterface){
        dbInterface.connect();
        dbInterface.close();
    }
}
